home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3knot.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.3 KB  |  64 lines

  1.  
  2. // JavaScript wrapper for r3knot.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_KNOT_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_KNOT = 115;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Insert new knot
  16. // Returns: Boolean, index of the inserted knot, or -1 for error
  17. // p3: Number, new knot    
  18.  
  19. R3KM_INSERT = 115000;
  20.  
  21. function mR3KM_INSERT(p3) {
  22.   return   DoA(this.r3obj, 115000, p3, R3TID_FLOAT, 0);
  23. }
  24.  
  25.  
  26.  
  27.  
  28. R3KA_Knots = 115500;
  29. function SetR3KA_Knots(value) {
  30.   R3Set(this.r3obj, R3KA_Knots, value, R3TID_FLOAT, R3TNF_ARRAY); 
  31. }
  32.  
  33. function GetR3KA_Knots() {
  34.   return R3Get(this.r3obj, R3KA_Knots, R3TID_FLOAT, R3TNF_ARRAY); 
  35. }
  36.  
  37. R3KA_KnotCnt = 115501;
  38. function SetR3KA_KnotCnt(value) {
  39.   R3Set(this.r3obj, R3KA_KnotCnt, value, R3TID_INTEGER, 0); 
  40. }
  41.  
  42. function GetR3KA_KnotCnt() {
  43.   return R3Get(this.r3obj, R3KA_KnotCnt, R3TID_INTEGER, 0); 
  44. }
  45.  
  46.  
  47.  
  48. function r3Knot () { 
  49.    this.base = r3God;
  50.    if(arguments.length) {
  51.       this.base(R3CLID_KNOT, arguments);
  52.    }
  53.    // Methods
  54.    this.INSERT=mR3KM_INSERT;
  55.  
  56.    // Attributes
  57.    this.GetKnots=GetR3KA_Knots;
  58.    this.SetKnots=SetR3KA_Knots;
  59.    this.GetKnotCnt=GetR3KA_KnotCnt;
  60.    this.SetKnotCnt=SetR3KA_KnotCnt;
  61. }
  62.  
  63. r3Knot.prototype=new r3Model;
  64. // r3knot.h_H